<script setup lang="ts">
import {ref} from 'vue'
import {Blog} from "@/types";

defineProps<{
  mode?: string,
  blog_id?: number | undefined
}>()
const blog = ref({
  id: 0,
  title: '',
  title_image: '',
  author: '',
  summary: '',
  content: '',
  category: '',
  create_time: new Date()
} as Blog)
</script>

<template>
  <DefaultLayout>
    <n-form>
      <n-form-item>
        <n-input v-model:value="blog.title"></n-input>
      </n-form-item>
    </n-form>
  </DefaultLayout>
</template>

<style scoped>

</style>